package com.jckj.core.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CheckSegmentItem implements Serializable {
    private String id;

    private String segId;

    private String segItemCode;

    private String segItemName;

    private String remark;

    private BigDecimal levelLowNum;

    private BigDecimal levelHighNum;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getSegId() {
        return segId;
    }

    public void setSegId(String segId) {
        this.segId = segId == null ? null : segId.trim();
    }

    public String getSegItemCode() {
        return segItemCode;
    }

    public void setSegItemCode(String segItemCode) {
        this.segItemCode = segItemCode == null ? null : segItemCode.trim();
    }

    public String getSegItemName() {
        return segItemName;
    }

    public void setSegItemName(String segItemName) {
        this.segItemName = segItemName == null ? null : segItemName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public BigDecimal getLevelLowNum() {
        return levelLowNum;
    }

    public void setLevelLowNum(BigDecimal levelLowNum) {
        this.levelLowNum = levelLowNum;
    }

    public BigDecimal getLevelHighNum() {
        return levelHighNum;
    }

    public void setLevelHighNum(BigDecimal levelHighNum) {
        this.levelHighNum = levelHighNum;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CheckSegmentItem other = (CheckSegmentItem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSegId() == null ? other.getSegId() == null : this.getSegId().equals(other.getSegId()))
            && (this.getSegItemCode() == null ? other.getSegItemCode() == null : this.getSegItemCode().equals(other.getSegItemCode()))
            && (this.getSegItemName() == null ? other.getSegItemName() == null : this.getSegItemName().equals(other.getSegItemName()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getLevelLowNum() == null ? other.getLevelLowNum() == null : this.getLevelLowNum().equals(other.getLevelLowNum()))
            && (this.getLevelHighNum() == null ? other.getLevelHighNum() == null : this.getLevelHighNum().equals(other.getLevelHighNum()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSegId() == null) ? 0 : getSegId().hashCode());
        result = prime * result + ((getSegItemCode() == null) ? 0 : getSegItemCode().hashCode());
        result = prime * result + ((getSegItemName() == null) ? 0 : getSegItemName().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getLevelLowNum() == null) ? 0 : getLevelLowNum().hashCode());
        result = prime * result + ((getLevelHighNum() == null) ? 0 : getLevelHighNum().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", segId=").append(segId);
        sb.append(", segItemCode=").append(segItemCode);
        sb.append(", segItemName=").append(segItemName);
        sb.append(", remark=").append(remark);
        sb.append(", levelLowNum=").append(levelLowNum);
        sb.append(", levelHighNum=").append(levelHighNum);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}